package site.yujiang;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/ping")
public class Controller {

    @Resource
    private PingService pingService;

    @GetMapping("/")
    public String ping() {
        return pingService.ping();
    }
}
